package com.bizmda.bizsip.sample.app.service;

import com.bizmda.bizsip.app.api.AppClientFactory;
import com.bizmda.bizsip.sample.sink.api.HelloInterface;
import com.bizmda.bizsip.sample.sink.api.Sample16Interface;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class HelloAppService implements HelloInterface {
    private HelloInterface helloInterface =  AppClientFactory.getSinkClient(HelloInterface.class,"hello-bean-sink");;

    @Override
    public String hello(String message) {
        return this.helloInterface.hello(message);
    }
}
